#include "KinectDemo.h"
using namespace std;

KinectDemo::KinectDemo(void)
{	
}

KinectDemo::~KinectDemo(void)
{
}

std::vector<Point> KinectDemo::getViaPoints()  //Simuliamo il kinect nel caso in cui non lo si abbia
{
	int type = rand() % 4;
	vector<Point> vec;
	switch(type){    
		case 0:
			vec.push_back(Point(2, 8, 10));
			vec.push_back(Point(10, 0, 10));
			vec.push_back(Point(2, 0, 18));
			break;
		case 1:
			vec.push_back(Point(3, 5, 10));
			vec.push_back(Point(3, 6, 10));
			vec.push_back(Point(4, 5, 9));
			break;
		case 2:
			vec.push_back(Point(4, 6, 10));
			vec.push_back(Point(4, 5, 10));
			vec.push_back(Point(4, 7, 10));
			break;
		case 3:
			vec.push_back(Point(0.05, 0.05, 2));
			vec.push_back(Point(0.30, 0.275, 0.9));
			vec.push_back(Point(0.05, 0.275, 0.8));
			break;
		default:
			vec.push_back(Point(4, 6, 10));
			vec.push_back(Point(7, 4, 10));
			vec.push_back(Point(3, 7, 10));
	}
	return vec;
		
}


std::vector<Point> KinectDemo::getPointstoObject(){
	vector<Point> vec;
	vec.push_back(Point(0.05, 0.05, 2));
	vec.push_back(Point(0.10, 0.275, 0.9));
	vec.push_back(Point(0.05, 0.275, 0.8));
	return vec;
}